package com.jabo.wechatmomentsdemo.model;

import com.jabo.wechatmomentsdemo.model.bean.TweetBean;
import com.jabo.wechatmomentsdemo.model.bean.UserInfo;
import com.jabo.wechatmomentsdemo.http.ApiService;
import com.jabo.wechatmomentsdemo.http.HttpManager;

import java.util.List;

import retrofit2.Call;

/**
 * @anthor JZheng3
 * @Time: 2020/9/4
 */
public class GetMomentsDataModelImpl implements GetMomentsDataModel {

    private ApiService mApiService;

    public GetMomentsDataModelImpl() {
        mApiService = HttpManager.getInstance().getService(ApiService.class);
    }

    public Call<List<TweetBean>> getTweetsBeanList() {
        return mApiService.getTweetsList();
    }

    public Call<UserInfo> getUserInfo() {
        return mApiService.getUserInfo();
    }
}
